package cn.edu.scau.cmi.suwenpeng.chapter06;
class A_exercise6{
	double f(double x,double y) {
		return x+y;
	}
}
class B_exercise6 extends A_exercise6{
	double f(int x,int y) {
		return x*y;
	}
}
public class E_exercise6 {

	public static void main(String[] args) {
		B_exercise6 b=new B_exercise6();
		System.out.println(b.f(3, 5));
		System.out.println(b.f(3.0, 5.0));
	}

}
